<%@ page trimDirectiveWhitespaces="true" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!-- 部门添加/修改ajax响应页面; -->
<form action="base/department/department!update.action" method="post" class="form-horizontal" id="departmentEditForm" class="">
    <input type="hidden" name="department.dimension.id" value="${department.dimension.id}" />
    <input type="hidden" name="department.id" value="${department.id}" />
    <input type="hidden" name="department.leftKey" value="${department.leftKey}" />
    <input type="hidden" name="department.rightKey" value="${department.rightKey}" />
    <c:if test="${message!=null}">
    <div class="alert alert-success">
        <i class="icon-info-sign icon-large"></i>
        <button type="button" class="close" data-dismiss="alert">&times;</button>
        ${message}
    </div>
    </c:if>
    <div class="control-group">
        <label class="control-label">编码</label>
        <div class="controls">
            <input type="text" name="department.code" value="${department.code}" />
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">名称</label>
        <div class="controls">
            <input type="text" name="department.name" value="${department.name}" />
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">上级部门</label>
        <div class="controls">
            <input type="hidden" readonly name="department.parent.id" value="${department.parent.id}" />
            <input type="text" value="${department.parent.path}" />
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">显示顺序</label>
        <div class="controls">
            <input type="text" name="department.dsporder" value="${department.dsporder}" />
        </div>
    </div>
    <div class="form-actions form-action-no-bg">
        <button class="btn btn-success btn-small" type="submit">保存</button>
        <button class="btn btn-success btn-small" type="reset">重置</button>
    </div>
</form>